#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;

int main()
{
    string s1, s2; cin >> s1 >> s2;
    reverse(s1.begin(), s1.end());
    reverse(s2.begin(), s2.end());
    int n1 = s1.size(), n2 = s2.size();
    vector<int> ans(n1 + n2, 0);
    
    for(int i = 0; i < n1; ++i)
        for(int j = 0; j < n2; ++j)
            ans[i + j] += (s1[i] - '0') * (s2[j] - '0');
            
    for(int i = 0; i < ans.size() - 1; ++i)
    {
        ans[i + 1] += ans[i] / 10;
        ans[i] = ans[i] % 10;
    }
    
    while(ans.size() > 1 && ans.back() == 0) ans.pop_back();
    for(int i = ans.size() - 1; i >= 0; --i) cout << ans[i];
    
    return 0;
}